#ifndef EIGENVALUE_CALC_H
#define EIGENVALUE_CALC_H

#include <stdint.h>
#include "usr_typedef.h"

typedef struct
{
	int len;   					//number
    float x[RAW_DATA_SIZE];  	//location
    float y[RAW_DATA_SIZE];  	//amplytude
} peak_data_vec_t;

typedef struct
{
    double b0;		//coef 0 of poly
    double b1;  	//coef 1 of poly
    double b2;  	//coef 2 of poly
    double b3;   	//coef 3 of poly
} poly_vec_t;

void acc_td_eigenvalue_calc(sys_cfg_info *sys, acc_unit acc[], chx_cfg_info chx[]);
/*
void acc_fd_unif_time_calc(sys_cfg_info *sys, acc_unit acc[], chx_cfg_info chx[], spd_unit spd[]);
void acc_fd_unif_angle_calc(sys_cfg_info *sys, spd_cfg_info spdc[], spd_unit spdu[], 
										acc_unit acc[], chx_cfg_info chx[]);
*/




#endif


